package com.crrc.dataparse.entity;

import java.io.Serializable;

public class TPara2TreatPK implements Serializable {
    public TemplatePara templatePara;
    public ParaTreatClass paraTreatClass;

    public TPara2TreatPK() {
    }
    @Override
    public int hashCode() {
        return (this.templatePara.getOid() + this.paraTreatClass.getOid()).hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        } else if (!(obj instanceof TPara2TreatPK)) {
            return false;
        } else if (obj == null) {
            return false;
        } else {
            TPara2TreatPK pk = (TPara2TreatPK)obj;
            return pk.templatePara.equals(this.templatePara) && pk.paraTreatClass.equals(this.paraTreatClass);
        }
    }
}
